home *** CD-ROM | disk | FTP | other *** search
- Path: kalypso.cybercom.net!not-for-mail
- From: stok@kalypso.cybercom.net (Michael J. Stok)
- Newsgroups: comp.lang.smalltalk,comp.lang.perl.misc,comp.lang.pascal.borland,comp.lang.eiffel,comp.lang.cobol,comp.lang.c++.leda,comp.lang.c,comp.lang.basic.visual.3rdparty,alt.computer.workshop.live
- Subject: Re: PROGRAMERS OF ANY LANGUAGE
- Date: 10 Apr 1996 07:15:24 -0400
- Organization: Pencom Systems Administration
- Message-ID: <4kg58c$djh@kalypso.cybercom.net>
- References: <Pine.SOL.3.91.960329010021.13209A-100000@harvey> <4k4pl2$pea@host1.einstein.com.ar> <316A6189.4287@wight.hursley.ibm.com>
- Reply-To: stok@cybercom.net
- NNTP-Posting-Host: kalypso.cybercom.net
-
- In article <316A6189.4287@wight.hursley.ibm.com>,
- Max Waterman <max@lton.u-net.com> wrote:
-
- >Why use {/} ? Why not just get the compiler to recognise the indentation?
- >Does anyone out there not indent and extra width for a block? It's rare to
- >get the indentation wrong but it's common to forget to put the {/}s in -
- >especially when changing code.
- >
- >Any comments?
-
- The {}s shouldn't be optional! That's the route Perl took with blocks
- after for, if, while, else etc. Just because C and similar languages
- have the "optimisation" that they the {}s are optional doesn't mean it's
- right :-)
-
- I would not like to be forced to use a particular indentation to indicate
- blocks, some people like 2 spaces, others 4, others use tab characters
- which depend on the setup of your editor. Python and Occam spring to
- mind as languages which used indentation to indicate block structure and
- it seems to work OK even if it flies in the face of letting the author
- have some control over the layout of his code.
-
- There are code beautifiers which can re-indent code and highlight this
- kind of error for most programming languages which were designed to make
- life easier for the compiler writer rather than the person using the
- language...
-
- Mike
-
- --
- Mike Stok | The "`Stok' disclaimers" apply.
- stok@pencom.com | Pencom Systems Administration (work)
- stok@cybercom.net | Cyber Access (play)
- http://www.cybercom.net/~stok/ | The inevitable WWW page (?)
-